package com.itheima.sh.d_method_04;
/*
            1-10之间奇数和
 */
public class for1_sum {
    public static void main(String[] args) {
        int sum=0;
        for (int i = 1; i <=10; i++) {
            if(i%2==1){
                sum=sum+i;
            }
        }
        System.out.println("1-10之间的奇数和为："+sum);
    }
}
